<?php

// comment out the following two lines when deployed to production
// comment out the following two lines when deployed to production
defined('YII_DEBUG') or define('YII_DEBUG', true);//关闭调试模式设置为false
defined('YII_ENV') or define('YII_ENV', 'dev');//产品发布设置为prod，调试请用dev

require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');

$config = require(__DIR__ . '/../config/web.php');

$oldpath=ini_get('include_path');
/*把新加的类库引用加载到环境变量中

ini_set("include_path",$oldpath.';'.
    __DIR__ . '/../libs/phpseclib/'.';'.__DIR__ . '/../libs/phpseclib/Math/'
);//包含phpseclib*/

set_include_path(get_include_path().":" . __DIR__ . '/../libs/');


//echo(ini_get('include_path'));exit;

Yii::$classMap['RedisUtils'] = __DIR__ . '/../libs/RedisUtils.php';
Yii::$classMap['ThumbnailImage'] = __DIR__ . '/../libs/ThumbnailImage.php';

Yii::$classMap['AlipaySubmit'] = __DIR__ . '/../libs/lib/alipay_submit.class.php';
Yii::$classMap['AlipayNotify'] = __DIR__ . '/../libs/lib/alipay_notify.class.php';


(new yii\web\Application($config))->run();
//aaa
